
import fun.grammar.Word;

public class Token extends Word {
	public String tag;
	public String value;
	public int line;
	public int column;
	
	public Token(String tag, String value, int line, int column) {
		super(tag);
		this.tag = tag;
		this.value = value;
		this.line = line;
		this.column = column;
	}

	@Override
	public String toString() {
		return String.format("%s\t%s\t%d\t%d\t", value, tag, line, column);
	}

	public String getValue() {
		return value;
	}

	public String getTag() {
		return tag;
	}

	public int getLine() {
		return line;
	}

	public int getColumn() {
		return column;
	}
}

